#ifndef __SEQSTACK_H__
#define __SEQSTACK_H__
#include <stdbool.h>
typedef int SElemType;
struct SeqStack
{
    SElemType*data;// SElemType*stack;// 指向栈元素存储的空间, 
    int capacity;//栈容量
    int top;//栈顶下标  -1 代表空栈   下一个出栈元素的位置
};


extern struct SeqStack*Create_Stack(int capacity);
extern void Destroy_Stack(struct SeqStack*s);
extern bool Clear_Stack(struct SeqStack*s);
extern bool Is_Empty(struct SeqStack*s);
extern bool Is_Full(struct SeqStack*s);
extern int Get_Length(struct SeqStack*s);
extern bool Pop(struct SeqStack*s, SElemType* d);
extern bool Push(struct SeqStack*s, SElemType d);
extern bool Get_Top(struct SeqStack*s, SElemType* d);
extern void Print_SeqStack(struct SeqStack*s);
extern void Input_Func();
#endif